package com.tvunetworks.center.device.model.api;
/**
 * @author Etan Yang
 * @create: 2021/10/13 16:04
 * @param <T>  t
 */
public class ResponseStructure<T> {
	
	private String errorCode;
	private String errorInfo;
	private T data;

	/**
	 *
	 * @param deviceGeoResponse deviceGeoResponse
	 * @return  ResponseStructure
	 */
	public ResponseStructure<T> setResult(DeviceGeoResponse deviceGeoResponse){
		this.setErrorCode(deviceGeoResponse.getErrorCode());
		this.setErrorInfo(deviceGeoResponse.getErrorInfo());
		return this;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorInfo() {
		return errorInfo;
	}
	public void setErrorInfo(String errorInfo) {
		this.errorInfo = errorInfo;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}

}
